<?php $this->load->view("common/header") ?>
<body>
  <div id="page_wrapper">
<?php $this->load->view("common/speel") ?>

<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
      <td  align="left"><?php $this->load->view("nav/main") ?></td>
      <td width="1265" valign="top">
      <div id="crum">
<?php echo $crum ?>
</div>
      <br>
        <table width="98%" border="0" align="center" cellpadding="3" cellspacing="0">
        <tr class="tblHeader panelHeaderBgColor">
          <td width="25%">Name</td>
          <td width="17%">Username</td>
          <td width="19%">Type</td>
          <td width="29%">Last Login</td>
          <td width="10%" align="right"><input name="newuser" type="button" class="tblBtn" id="newuser" value="New User" onClick="redirect('<?php echo base_url(). "user/newuser/" ?>');"></td>
        </tr>
     <?php foreach($Allusers as $user) { ?>   
        <tr class="tblBody">
          <td><?php echo $user['firstname'] ." " . $user['lastname'] ?></td>
          <td><?php echo $user['username'] ?></td>
          <td><?php echo $user['lu_lable'] ?></td>
          <td><?php echo $user['lastlogin'] ?></td>
          <td align="right"><select class="user_action" name="user_action" id="user_action_<?php echo $user['id'] ?>">
            <option value="0,<?php echo $user['id'] ?>">Action</option>
            <option value="1,<?php echo $user['id'] ?>">Edit User</option>
            <option value="3,<?php echo $user['id'] ?>">Delete User</option>
          </select></td>
        </tr>
      <?php } ?>  
      </table></td>
    </tr>
</table>

<?php $this->load->view("common/footer") ?>
</div>
</body>
</html>
